/*
 * EnemySprite.java
 *
 * Created on November 18, 2007, 12:48 PM
 *
 * Copyright (C) 2007-2008  Hylke van der Schaaf
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, in version 3 of the License.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */
package hextd.sprite;

import hextd.util.Context;
import java.awt.Graphics2D;

/**
 *
 * @author hylke
 */
public interface EnemySprite {

	public static enum COLOR {

		RED,
		GREEN,
		BLUE,
		YELLOW,
		OTHER
	}

	public static enum DamageType {

		normal,
		speed,
		power,
		time
	}

	public static enum Size {

		small('S', 0.5f),
		normal('N', 1.0f),
		large('L', 1.5f);
		public char letter;
		public float scaleMod;

		Size(char l, float scaleMod) {
			this.letter = l;
			this.scaleMod = scaleMod;
		}
	}

	public float getPreferredDelay();

	public void doTick(int gameTime);

	public void resetScale();

	public void paint(Graphics2D g2, int gameTime);

	public float getX();

	public float getY();

	public float getPaintX();

	public float getPaintY();

	public boolean validTarget();

	public boolean isDead();

	public long getHealth();

	public float getProgress();

	public void remove();

	public void doDamage(int damage, COLOR c);

	public void doDamage(float damage, DamageType t, COLOR c);

	public float getSpeed();

	public boolean isShielded();

	public void setSize(Size s);

	public void setSelected(boolean selected);

	public String getInfoString();

	public String getStatusString();

	public void addStatusListener(EnemySpriteChangedListener l);

	public void removeStatusListener(EnemySpriteChangedListener l);

	public EnemySprite create(Context context, int path, float delay, long health, int price, Size s);
}
